a=5
b=2
print(5/2)

text='余8件'
s=text.lstrip('余').rstrip('件')
print(s)

def getDomain1(url):
    index1=0
    index2=0
    cnt=0
    for i in range(len(url)-1):
        k=url[i]
        if k!='/':
            continue
        cnt+=1
        if cnt==2:
            index1=i
        elif cnt==3:
            index2=i
            break
    domain=url[index1+1:index2]
    return domain;


url='http://www.baidu.com/s?wd=%E7%88%AC%E8%99%AB&rsv_spt=1&rsv_iqid=0xea65e60300007d2a&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=02049043_62_pg&rsv_enter=1&rsv_sug3=5&rsv_sug1=3&rsv_sug7=100&rsv_sug2=0&inputT=1169&rsv_sug4=2873&rsv_sug=1'
domain=getDomain1(url)
print(domain)